<script lang='ts'>
import { defineComponent, onMounted, createApp } from 'vue'
import Son from './Son.vue'
export default defineComponent({
  components: {
  },
  setup () {
    onMounted(() => {
      const div = document.createElement('div')
      const sonNode = createApp(Son).mount(div)
      document.querySelector('#sonId')!.innerHTML = sonNode.$el.innerHTML
    })
    return {
    }
  }
})
</script>
<template>
  <div>
    我是Parent
    <div id="sonId"></div>
  </div>
</template>
<style lang='scss' scoped>
</style>
